import 'package:xuance/bean/SplunkDetailItemBean.dart';
import 'package:xuance/network/network_service.dart';

class SplunkApi {
  static Future<SplunkDetailItemBean?> getListById(
      {required String id,
      required int page,
      required String queryCondition}) async {
    var res = await NetworkService.post(
        url: "splunk/querySplunkLogFlutterDetailList",
        map: {
          "splunkLogId": id,
          "pageSize": 15,
          "currentPage": page,
          "queryCondition": queryCondition,
        });
    return res.getTypedData((m) => SplunkDetailItemBean.fromJson(m));
  }
}
